<style lang="less">
    /*@import './international.less';*/
</style>

<template>
    <div>
        <common-page v-bind="menuPage">
            <template slot="modal">
                <Form :model="menuPage.detailData" :label-width="80">
                    <FormItem label="短信签名.比如[阿里云]">
                        <Input v-model="menuPage.detailData.signName"></Input>
                    </FormItem>
                    <FormItem label="短信模板ID">
                        <Input v-model="menuPage.detailData.templateCode"></Input>
                    </FormItem>
                    <FormItem label="模板变量">
                        <Input v-model="menuPage.detailData.templateParam"></Input>
                    </FormItem>
                    <FormItem label="短信扩展码">
                        <Input v-model="menuPage.detailData.smsUpExtendCode"></Input>
                    </FormItem>
                    <FormItem label="外部流水扩展字段">
                        <Input v-model="menuPage.detailData.outId"></Input>
                    </FormItem>
                    <FormItem label="描述">
                        <Input v-model="menuPage.detailData.text"></Input>
                    </FormItem>
                    <hr>
                    <FormItem label="添加人">
                        <Input v-model="menuPage.detailData.addUserName" :readonly="true" placeholder="无须输入"></Input>
                    </FormItem>
                </Form>
            </template>
        </common-page>
    </div>
</template>

<script>

    import commonPage from '@/views/common/common-page.vue';
    import util from '@/libs/util';
    import autoSelect from '@/views/common/autoSelect.vue';

    // 默认界面查询条件
    let pageParams = Object.assign({}, util.queryParams, { // 额外的参数,比如条件的默认值
        sortName: "id",
        sortOrder: "asc"
    });
    export default {
        name: 'shortmessagetemplate-page',
        components: {
            commonPage
        },
        props: {
            columns: Array
        },
        data () {
            return {
                menuPage: {
                    toolbar: {
                        menuSn: "shortmessagetemplate",
                        buttons: []
                    },
                    list: {
                        table: {
                            columns: [
                                {type: 'selection', width: 50, align: 'center'},
                                {type: 'index', width: 60, align: 'center'},
                                {title: 'ID', key: 'id'},
                                {title: '短信签名.', key: 'signName'},
                                {title: '短信模板ID', key: 'templateCode'},
                                {title: '模板变量', key: 'templateParam'},
                                {title: '短信扩展码', key: 'smsUpExtendCode'},
                                {title: '外部流水扩展字段', key: 'outId'},
                                {title: '添加人', key: 'addUserName'},
                                {title: '描述', key: 'text'}
                            ],
                            data: []
                        },
                        url: "shortmessagetemplate/list",
                        queryParams: pageParams
                    },
                    searchbar: {
                        queryParams: pageParams,
                        inputs: [
                            {
                                text: "ID",
                                sn: "id",
                                style: {
                                    width: "200px"
                                }
                            },
                            {
                                text: "短信签名",
                                sn: "signName",
                                style: {
                                    width: "200px"
                                }
                            },
                            {
                                text: "短信模板ID",
                                sn: "templateCode",
                                style: {
                                    width: "200px"
                                }
                            },
                            {
                                text: "模板变量",
                                sn: "templateParam",
                                style: {
                                    width: "200px"
                                }
                            },
                            {
                                text: "短信扩展码",
                                sn: "smsUpExtendCode",
                                style: {
                                    width: "200px"
                                }
                            },
                            {
                                text: "外部流水扩展字段",
                                sn: "outId",
                                style: {
                                    width: "200px"
                                }
                            },
                            {
                                text: "添加人id",
                                sn: "userId",
                                style: {
                                    width: "200px"
                                }
                            },
                            {
                                text: "描述",
                                sn: "text",
                                style: {
                                    width: "200px"
                                }
                            }
                        ]
                    },
                    pageParams: pageParams,
                    detailData: {
                        id: "",
                        signName: "",
                        templateCode: "",
                        templateParam: "",
                        smsUpExtendCode: "",
                        outId: "",
                        userId: "",
                        addUserName: "",
                        text: ""
                    }
                }
            };
        },
        methods: {},
        created () {
        },
        mounted() {
        }
    };
</script>
